package cn.lliiooll.evt;

import cn.lliiooll.mt.ShiFu;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class PlayerMakeMentorEvent extends Event implements Cancellable {
    private static final HandlerList handlers;
    private Player player;
    private ShiFu shifu;
    private boolean canceled;

    static {
        handlers = new HandlerList();
    }

    public PlayerMakeMentorEvent(Player player, ShiFu shifu) {
        this.canceled = false;
        this.player = player;
        this.shifu = shifu;
    }

    public ShiFu getShifu(){
        return this.shifu;
    }

    public Player getPlayer() {
        return this.player;
    }

    public HandlerList getHandlers() {
        return this.handlers;
    }

    public static HandlerList getHandlerList() {
        return PlayerMakeMentorEvent.handlers;
    }

    public boolean isCancelled() {
        return this.canceled;
    }

    public void setCancelled(final boolean canceled) {
        this.canceled = canceled;
    }
}
